<template>
  <div>
    <Shequ v-if="level == 2"></Shequ>
    <Community v-if="level == 0 || level == 1 || level == 3"></Community>
  </div>
</template>

<script>
import Shequ from './components/shequ';
import Community from './components/community';
  export default {
    name: 'Dashboard',
    components: {
      Shequ,
      Community
    },
    data() {
      return {
        level: ''
        
      }
    },
    created(){
      this.level = localStorage.getItem('level')
    }
  }
</script>

<style lang="scss" scoped>

</style>